package com.zking.ssm.mapper;

import com.zking.ssm.model.SysRoler;
import com.zking.ssm.model.SysUser;

import java.util.List;

public interface SysUserMapper {

    int deleteByPrimaryKey(Long userId);

    int insert(SysUser record);

    int insertSelective(SysUser record);

    SysUser selectByPrimaryKey(Long userId);

    int updateByPrimaryKeySelective(SysUser record);

    int updateByPrimaryKey(SysUser record);

    List<SysUser> selectAll(SysUser sysUser);


    //登陆的方法
    SysUser login(SysUser sysUser);

    int updateUser(SysUser record);

    int updatePassword(SysUser record);
}